package OOday01.HomeWork2;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/6 20:16
 */
public class Car {
    String brand;
    String color;
    double price;
    int capacity;
    Car(){

    }
    Car(String brand,String color,double price,int capacity){
        this.brand=brand;
        this.color=color;
        this.price=price;
        this.capacity=capacity;
    }
    void start(){
        System.out.println(brand+"1111 "+color+"2222 "+price);
    }
    void  run(){
        System.out.println(brand+"11111111");
    }
    void stop(){
        System.out.println(color+"sfhkaj");
    }
}
